import Layout from "/src/page/index/index.vue";
import {mapStores} from "pinia";
import {useCommonStore} from "../../store/modules/common.js";

export default [{
  path: '/admin',
  name: "ERP设置",
  component: () => Layout,
  children: [
    {
    path: '/admin/config/index',
    name: "企业首页",
    component: () =>
        import('/src/views/admin/config/index.vue'),
    meta: {
      // i18n: 'config',
      keepAlive: true,
      isTab: true,
    }
  },
    {
    path: '/admin/application/index',
    name: '应用管理',
    component: () => import(/* webpackChunkName: "views" */ '/src/views/admin/application/index.vue'),
    meta: {
      // i18n: 'application',
      keepAlive: true,
      isTab: true,
    },
  },
    {
    path: '/admin/employeeDep/index',
    name: '员工与部门管理',
    component: () => import(/* webpackChunkName: "views" */ '/src/views/admin/employeeDep/index.vue'),
    meta: {
      // i18n: 'application',
      keepAlive: true,
      isTab: true,
    },
  },
    {
    path: '/admin/init/Set',
    name: '初始化',
    component: () => import(/* webpackChunkName: "views" */ '/src/views/admin/init/set.vue'),
    meta: {
      // i18n: 'application',
      keepAlive: true,
      isTab: true,
    },
  },
    {
    path: '/admin/examine/index',
    name: '业务审批流',
    component: () => import(/* webpackChunkName: "views" */ '/src/views/admin/examine/index.vue'),
    meta: {
      // i18n: 'application',
      keepAlive: true,
      isTab: true,
    },
  },
    {
    path: '/admin/oa/index',
    name: '办公审批流',
    component: () => import(/* webpackChunkName: "views" */ '/src/views/admin/oa/index.vue'),
    meta: {
      // i18n: 'application',
      keepAlive: true,
      isTab: true,
    },
  },
    {
    path: '/admin/project/index',
    name: '项目管理',
    component: () => import(/* webpackChunkName: "views" */ '/src/views/admin/project/index.vue'),
    meta: {
      // i18n: 'application',
      keepAlive: true,
      isTab: true,
    },
  },
    {
    path: '/admin/customer/index',
    name: '客户管理',
    // component: () => import(/* webpackChunkName: "views" */ '/src/views/admin/project'),
    // meta: {
    //   // i18n: 'application',
    //   keepAlive: true,
    //   isTab: true,
    // },
    children: [
      {
        path: '/admin/crm/customField/index',
        name: '自定义字段设置',
        component: () => import(/* webpackChunkName: "views" */ '/src/views/admin/crm/customField/index.vue'),
        meta: {
          // i18n: 'application',
          keepAlive: true,
          isTab: true,
        }
      },{
        path: '/admin/crm/customer/index',
        name: '客户公海规则设置',
        component: () => import(/* webpackChunkName: "views" */ '/src/views/admin/crm/customer/index.vue'),
        meta: {
          // i18n: 'application',
          keepAlive: true,
          isTab: true,
        }
      },{
        path: '/admin/crm/bizParam/index',
        name: '业务参数设置',
        component: () => import(/* webpackChunkName: "views" */ '/src/views/admin/crm/bizParam/index.vue'),
        meta: {
          // i18n: 'application',
          keepAlive: true,
          isTab: true,
        }
      },{
        path: '/admin/crm/bizGoals/index',
        name: '业绩目标设置',
        component: () => import(/* webpackChunkName: "views" */ '/src/views/admin/crm/bizGoals/index.vue'),
        meta: {
          // i18n: 'application',
          keepAlive: true,
          isTab: true,
        }
      }
    ]
  },
    {
    path: '/admin/hrm/index',
    name: '人力资源管理',
    // component: () => import(/* webpackChunkName: "views" */ '/src/views/admin/project'),
    // meta: {
    //   // i18n: 'application',
    //   keepAlive: true,
    //   isTab: true,
    // },
    children: [
      {
        path: '/admin/hrm/customField/index',
        name: '自定义字段设置',
        component: () => import(/* webpackChunkName: "views" */ '/src/views/admin/hrm/customField/index.vue'),
        meta: {
          // i18n: 'application',
          keepAlive: true,
          isTab: true,
        }
      },{
        path: '/admin/hrm/salary/Rules',
        name: '薪资设置',
        component: () => import(/* webpackChunkName: "views" */ '/src/views/admin/hrm/salary/Rules.vue'),
        meta: {
          // i18n: 'application',
          keepAlive: true,
          isTab: true,
        }
      },{
        path: '/admin/hrm/salary/Compute',
        name: '计薪设置',
        component: () => import(/* webpackChunkName: "views" */ '/src/views/admin/hrm/salary/Compute.vue'),
        meta: {
          // i18n: 'application',
          keepAlive: true,
          isTab: true,
        }
      },{
        path: '/admin/hrm/salary/Options',
        name: '工资表设置',
        component: () => import(/* webpackChunkName: "views" */ '/src/views/admin/hrm/salary/Options.vue'),
        meta: {
          // i18n: 'application',
          keepAlive: true,
          isTab: true,
        }
      },{
        path: '/admin/hrm/insuranceScheme/index',
        name: '社保方案管理',
        component: () => import(/* webpackChunkName: "views" */ '/src/views/admin/hrm/insuranceScheme/index.vue'),
        meta: {
          // i18n: 'application',
          keepAlive: true,
          isTab: true,
        }
      },{
        path: '/admin/hrm/achievement/index',
        name: '考核模板设置',
        component: () => import(/* webpackChunkName: "views" */ '/src/views/admin/hrm/achievement/index.vue'),
        meta: {
          // i18n: 'application',
          keepAlive: true,
          isTab: true,
        }
      },{
        path: '/admin/hrm/bizParam/index',
        name: '业务参数设置',
        component: () => import(/* webpackChunkName: "views" */ '/src/views/admin/hrm/bizParam/index.vue'),
        meta: {
          // i18n: 'application',
          keepAlive: true,
          isTab: true,
        }
      },{
        path: '/admin/hrm/employeeManage/index',
        name: '员工管理设置',
        component: () => import(/* webpackChunkName: "views" */ '/src/views/admin/hrm/employeeManage/index.vue'),
        meta: {
          // i18n: 'application',
          keepAlive: true,
          isTab: true,
        }
      }
    ]
  }
  ]
}]
